package excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * excel文件上传的实体类
 */
@Data
public class DataDemo {
    /**
     * @ExcelProperty 标记表头名称
     * value用于写，index用于读(标记第几行)
     */
    @ExcelProperty(value = "学生编号",index = 0)
    private int sno;

    @ExcelProperty(value = "学生姓名",index = 1)
    private String sname;
}
